/*
 *  Copyright 2004 Blandware (http://www.blandware.com)
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package com.blandware.atleap.webapp.util.news;

/**
 * <p>Webapp constants for news module</p>
 * <p/>
 * <p><a href="NewsModuleWebConstants.java.html"><i>View Source</i></a></p>
 *
 * @author Sergey Zubtsovskiy <a href="mailto:sergey.zubtsovskiy@blandware.com">&lt;sergey.zubtsovskiy@blandware.com&gt;</a>
 * @version $Revision: 1.9 $ $Date: 2006/08/03 10:08:27 $
 */
public class NewsModuleWebConstants {

	/**
	 * Context key under which ID of news item is saved
	 */
	public static final String NEWS_ITEM_ID_KEY = "com.blandware.atleap.news.NEWS_ITEM_ID";

	/**
	 * Name of news items grid
	 */
	public static final String NEWS_ITEMS_GRID = "newsItemsGrid";

	/**
	 * Name of grid with news archive
	 */
	public static final String NEWS_ARCHIVE_GRID = "newsArchiveGrid";

	/**
	 * Context key, under which collection of news items is saved
	 */
	public static final String NEWS_ITEMS_COLLECTION_KEY = "com.blandware.atleap.news.NEWS_ITEMS_COLLECTION";

	/**
	 * UrlRewrite filter prefix for news items
	 */
	public static final String NEWS_ITEM_URI_PREFIX = "/rw/news";

	/**
	 * Context key under which merged annotation of news item is stored
	 */
	public static final String NEWS_ITEM_MERGED_ANNOTATION_KEY = "com.blandware.atleap.NEWS_ITEM_MERGED_ANNOTATION";

	/**
	 * Context key under which merged body of news item is stored
	 */
	public static final String NEWS_ITEM_MERGED_BODY_KEY = "com.blandware.atleap.NEWS_ITEM_MERGED_BODY";

	/**
	 * Context key which prevents double form submit (instead of transactions)
	 */
	public static final String NEWS_ITEM_SUBMITTED_ACTION_KEY = "com.blandware.atleap.NEWS_ITEM_SUBMITTED_ACTION_KEY";

	/**
	 * Name of global property holding the value of news list size
	 */
	public static final String NEWS_LIST_SIZE = "news.list.size";

    /**
     * Context key under which map of chosen locales for annotation is stored
     */
    public static final String NEWS_ITEM_CHOSEN_ANNOTATIONS_KEY = "com.blandware.atleap.NEWS_ITEM_CHOSEN_ANNOTATIONS";
}
